/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 根据ID查询投诉与反馈处理记录详情 GET /scenic/complaintFeedbackDispose/getFeedbackDisposeById */
export async function scenicComplaintFeedbackDisposeGetFeedbackDisposeByIdUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicComplaintFeedbackDisposeGetFeedbackDisposeByIdUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingtousuyufankuichulijilubiaovo>(
    '/scenic/complaintFeedbackDispose/getFeedbackDisposeById',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 查询投诉与反馈处理记录列表 POST /scenic/complaintFeedbackDispose/getFeedbackDisposeList */
export async function scenicComplaintFeedbackDisposeGetFeedbackDisposeListUsingPost({
  body,
  options,
}: {
  body: API.ComplaintFeedbackDisposeBode5755168e4b4d84B5bbF804cf5e48c9;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVotousuyufankuichulijilubiaovo>(
    '/scenic/complaintFeedbackDispose/getFeedbackDisposeList',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 新增保存投诉与反馈处理记录 POST /scenic/complaintFeedbackDispose/saveFeedbackDispose */
export async function scenicComplaintFeedbackDisposeSaveFeedbackDisposeUsingPost({
  body,
  options,
}: {
  body: API.ComplaintFeedbackDisposeBoac1b0c609d4640f6882bBea2efd9fe5e;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/complaintFeedbackDispose/saveFeedbackDispose',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 处理投诉与反馈处理记录表 PUT /scenic/complaintFeedbackDispose/updateFeedbackDispose */
export async function scenicComplaintFeedbackDisposeUpdateFeedbackDisposeUsingPut({
  body,
  options,
}: {
  body: API.tousuyufankuichulijilubiaobo;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/complaintFeedbackDispose/updateFeedbackDispose',
    {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
